package com.boil.util;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 主常量类。
 *
 * @author ChenYong
 * @date 2016-09-21
 */
public final class Constants {
    //--------------------[通用状态]--------------------//
    /**
     * 成功
     */
    public static final int SUCCESS = 0;
    public static final String SUCCESS_MSG = "成功";
    /**
     * 成功-OK
     */
    public static final String SUCCESS_OK = "OK";
    /**
     * 失败
     */
    public static final int ERROR = -1;
    public static final String ERROR_MSG = "失败";
    /**
     * 系统繁忙
     */
    public static final int SYS_ERROR = 1000;
    public static final String SYS_ERROR_MSG = "系统繁忙";
    /**
     * 登录失败-登录账号不存在
     */
    public static final int LOGIN_ACCOUNT_NOT_EXIST = 1001;
    public static final String LOGIN_ACCOUNT_NOT_EXIST_MSG = "账号不存在";
    /**
     * 登录失败-登录密码错误
     */
    public static final int LOGIN_PASSWD_ERROR = 1002;
    public static final String LOGIN_PASSWD_ERROR_MSG = "密码错误";
    /**
     * 登录超时
     */
    public static final int LOGIN_TIMEOUT = 1003;
    public static final String LOGIN_TIMEOUT_MSG = "您已登录超时，请重新登录";
    /**
     * 退出系统
     */
    public static final int LOGOUT = 1004;
    public static final String LOGOUT_MSG = "退出系统";
    /**
     * 请求参数不合法
     */
    public static final int REQUEST_PARAM_ERROR = 1005;
    public static final String REQUEST_PARAM_ERROR_MSG = "请求参数不合法";
    /**
     * 更新密码成功
     */
    public static final String UPDATE_PASSWD_SUCESS_MSG = "更新密码成功";
    /**
     * 旧密码不正确
     */
    public static final int OLD_PASSWD_ERROR = 1006;
    public static final String OLD_PASSWD_ERROR_MSG = "旧密码不正确";
    /**
     * 未授权访问
     */
    public static final int UNAUTHORIZED_ERROR = 1007;
    public static final String UNAUTHORIZED_ERROR_MSG = "未授权访问";
    /**
     * 发红包失败
     */
    public static final int SENDREDPACK_ERROR = 1008;
    public static final String SENDREDPACK_ERROR_MSG = "发红包失败";
    /**
     * 发红包的金额不能大于20元
     */
    public static final String SENDREDPACK_AMOUNT_EXCEED_20RMB_MSG = "发红包的金额不能大于20元";
    /**
     * 此举报结果不是【已核实】，不能发红包
     */
    public static final String REPORT_RESULT_NOT_3_STOP_SENDREDPACK_MSG = "此举报结果不是【已核实】，不能发红包";
    /**
     * 此举报不是来自【微信】，不能发红包
     */
    public static final String REPORT_NOT_WEIXIN_STOP_SENDREDPACK_MSG = "此举报不是来自【微信】，不能发红包";
    /**
     * 邮件发送失败
     */
    public static final int MAIL_SEND_ERROR = 2001;
    public static final String MAIL_SEND_ERROR_MSG = "邮件发送失败";
    /**
     * 邮箱已被注册
     */
    public static final int MAIL_EXIST = 2002;
    public static final String MAIL_EXIST_MSG = "邮箱已被注册";
    /**
     * 邮箱激活失败
     */
    public static final int MAIL_ACT_ERROR = 2003;
    public static final String MAIL_ACT_ERROR_MSG = "邮箱激活失败";
    /**
     * 假删除成功
     */
    public static final String FAKE_DELETE_SUCCESS_MSG = "假删除成功";
    /**
     * 假删除失败
     */
    public static final int FAKE_DELETE_ERROR = 2004;
    public static final String FAKE_DELETE_ERROR_MSG = "假删除失败";
    /**
     * 手机号未存在
     */
    public static final String PHONE_NOT_EXIST_MSG = "手机号未存在";
    /**
     * 手机号已存在
     */
    public static final int PHONE_EXIST = 3101;
    public static final String PHONE_EXIST_MSG = "手机号已存在";
    /**
     * 手机号为空
     */
    public static final int PHONE_EMPTY = 3102;
    public static final String PHONE_EMPTY_MSG = "手机号为空";
    /**
     * 手机号的格式不正确
     */
    public static final int PHONE_FORMAT_ERROR = 3103;
    public static final String PHONE_FORMAT_ERROR_MSG = "手机号的格式不正确";
    /**
     * 账号未存在
     */
    public static final String ACCOUNT_NOT_EXIST_MSG = "账号未存在";
    /**
     * 账号已存在
     */
    public static final int ACCOUNT_EXIST = 3104;
    public static final String ACCOUNT_EXIST_MSG = "账号已存在";
    /**
     * 账号为空
     */
    public static final int ACCOUNT_EMPTY = 3105;
    public static final String ACCOUNT_EMPTY_MSG = "账号为空";
    /**
     * 账号的格式不正确
     */
    public static final int ACCOUNT_FORMAT_ERROR = 3106;
    public static final String ACCOUNT_FORMAT_ERROR_MSG = "账号的格式不正确，由数字、字母、下划线组成，且长度在5至20个字符之间";
    /**
     * 权限代码未存在
     */
    public static final String PERMISSION_CODE_NOT_EXIST_MSG = "权限代码未存在";
    /**
     * 权限代码已存在
     */
    public static final int PERMISSION_CODE_EXIST = 3107;
    public static final String PERMISSION_CODE_EXIST_MSG = "权限代码已存在";
    /**
     * 权限代码为空
     */
    public static final int PERMISSION_CODE_EMPTY = 3108;
    public static final String PERMISSION_CODE_EMPTY_MSG = "权限代码为空";
    /**
     * 权限代码的格式不正确
     */
    public static final int PERMISSION_CODE_FORMAT_ERROR = 3109;
    public static final String PERMISSION_CODE_FORMAT_ERROR_MSG = "权限代码的格式不正确，由(0-9)、(a-z)、(_)、(:)、(*)组成，且以(a-z)开头，如：user:* 或 user:create";
    /**
     * 角色代码未存在
     */
    public static final String ROLE_CODE_NOT_EXIST_MSG = "角色代码未存在";
    /**
     * 角色代码已存在
     */
    public static final int ROLE_CODE_EXIST = 3110;
    public static final String ROLE_CODE_EXIST_MSG = "角色代码已存在";
    /**
     * 角色代码为空
     */
    public static final int ROLE_CODE_EMPTY = 3111;
    public static final String ROLE_CODE_EMPTY_MSG = "角色代码为空";
    /**
     * 角色代码的格式不正确
     */
    public static final int ROLE_CODE_FORMAT_ERROR = 3112;
    public static final String ROLE_CODE_FORMAT_ERROR_MSG = "角色代码的格式不正确，由(0-9)、(a-z)、(_)组成，且以(a-z)开头，如：administrator";
    /**
     * 上传成功
     */
    public static final String UPLOAD_SUCCESS_MSG = "上传成功";
    /**
     * 上传路径为空
     */
    public static final int UPLOAD_PATH_EMPTY = 3200;
    public static final String UPLOAD_PATH_EMPTY_MSG = "上传路径为空";
    /**
     * 上传路径不正确
     */
    public static final int UPLOAD_PATH_ERROR = 3201;
    public static final String UPLOAD_PATH_ERROR_MSG = "上传路径不正确";
    /**
     * 上传图片为空
     */
    public static final int UPLOAD_PIC_EMPTY = 3202;
    public static final String UPLOAD_PIC_EMPTY_MSG = "上传图片为空";
    /**
     * 只能上传图片
     */
    public static final int UPLOAD_PIC_TYPE = 3203;
    public static final String UPLOAD_PIC_TYPE_MSG = "只能上传图片";
    /**
     * 上传图片超过最大限制
     */
    public static final int UPLOAD_PIC_EXCEED_MAX_SIZE = 3204;
    public static final String UPLOAD_PIC_EXCEED_MAX_SIZE_MSG = "上传图片超过最大限制";
    /**
     * 上传 Excel 为空
     */
    public static final int UPLOAD_EXCEL_EMPTY = 3205;
    public static final String UPLOAD_EXCEL_EMPTY_MSG = "上传Excel为空";
    /**
     * 只能上传 Excel
     */
    public static final int UPLOAD_EXCEL_TYPE = 3206;
    public static final String UPLOAD_EXCEL_TYPE_MSG = "只能上传Excel";
    /**
     * 上传 Excel 超过最大限制
     */
    public static final int UPLOAD_EXCEL_EXCEED_MAX_SIZE = 3207;
    public static final String UPLOAD_EXCEL_EXCEED_MAX_SIZE_MSG = "上传Excel超过最大限制";
    /**
     * 上传文件为空
     */
    public static final int UPLOAD_FILE_EMPTY = 3208;
    public static final String UPLOAD_FILE_EMPTY_MSG = "上传文件为空";
    /**
     * 上传文件超过最大限制
     */
    public static final int UPLOAD_FILE_EXCEED_MAX_SIZE = 3209;
    public static final String UPLOAD_FILE_EXCEED_MAX_SIZE_MSG = "上传文件超过最大限制";
    /**
     * 在线人数
     */
    public static final int ONLINE_SESSION_COUNT = 3400;
    public static final String ONLINE_SESSION_COUNT_MSG = "在线人数";
    /**
     * 404-页面不存在
     */
    public static final int ERROR_404 = 404;
    public static final String ERROR_404_MSG = "您访问的页面不存在";
    //--------------------[/通用状态]--------------------//


    //--------------------[通用常量]--------------------//
    /**
     * ID
     */
    public static final String ID_STR = "id";
    /**
     * ID：1
     */
    public static final long ID_1 = 1L;
    /**
     * 父 ID
     */
    public static final String PARENT_ID = "parentId";
    /**
     * 结果映射
     */
    public static final String RESULT_VO = "resultVo";
    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "loginUser";
    /**
     * 页面类型
     */
    public static final String PAGE_TYPE = "pageType";
    /**
     * 登录页面
     */
    public static final String LOGIN_PAGE = "LOGIN_PAGE";
    /**
     * 邮箱注册页面
     */
    public static final String MAIL_REG_PAGE = "MAIL_REGIST_PAGE";
    /**
     * 手机注册页面
     */
    public static final String PHONE_REG_PAGE = "PHONE_REGIST_PAGE";
    /**
     * 请求类型
     */
    public static final String REQUEST_TYPE = "X-Requested-With";
    /**
     * Ajax 请求
     */
    public static final String AJAX_REQUEST = "XMLHttpRequest";
    /**
     * 浏览器支持的 MIME 类型：JSON
     */
    public static final String ACCEPT_JSON = "application/json";
    /**
     * 浏览器支持的 MIME 类型：HTML
     */
    public static final String ACCEPT_HTML = "text/html";
    /**
     * 浏览器支持的 MIME 类型：XML
     */
    public static final String ACCEPT_XML = "application/xml";
    /**
     * 浏览器支持的 MIME 类型：XHTML
     */
    public static final String ACCEPT_XHTML = "application/xhtml+xml";
    /**
     * 浏览器支持的 MIME 类型：JavaScript
     */
    public static final String ACCEPT_JAVASCRIPT = "application/javascript";
    /**
     * 启用状态：启用
     */
    public static final int USABLE_0 = 0;
    /**
     * 启用状态：停用
     */
    public static final int USABLE_1 = 1;
    /**
     * 删除状态：未删除
     */
    public static final int DELETE_CODE_NO = 0;
    /**
     * 删除状态：已删除
     */
    public static final int DELETE_CODE_YES = 1;
    /**
     * 所有父 ID 的根
     */
    public static final long ROOT_PARENT_ID = 0L;
    /**
     * MySQL 数据库方言
     */
    public static final String MYSQL_DIALECT = "mysql";
    /**
     * Oralce 数据库方言
     */
    public static final String ORALCE_DIALECT = "oracle";
    /**
     * Get 请求
     */
    public static final String REQUEST_GET = "GET";
    /**
     * Post 请求
     */
    public static final String REQUEST_POST = "POST";
    /**
     * 页码：1
     */
    public static final int PAGE_SIZE_1 = 1;
    /**
     * 页码：10
     */
    public static final int PAGE_SIZE_10 = 10;
    /**
     * 页码：12
     */
    public static final int PAGE_SIZE_12 = 12;
    /**
     * 页码：14
     */
    public static final int PAGE_SIZE_14 = 14;
    /**
     * 页码：20
     */
    public static final int PAGE_SIZE_20 = 20;
    /**
     * 登录用户的所有菜单
     */
    public static final String LOGIN_USER_MENUS = "loginUserMenus";
    /**
     * 菜单 ID
     */
    public static final String MENU_ID = "menuId";
    /**
     * 菜单父 ID
     */
    public static final String MENU_PARENT_ID = "menuParentId";
    /**
     * 上传图片的最大限制：2MB
     */
    public static final long UPLOAD_PIC_MAX_SIZE = 2L * 1024L * 1024L;
    /**
     * 上传文件的最大限制：10MB
     */
    public static final long UPLOAD_FILE_MAX_SIZE_10M = 10L * 1024L * 1024L;
    /**
     * 上传文件的最大限制：50MB
     */
    public static final long UPLOAD_FILE_MAX_SIZE_50M = 50L * 1024L * 1024L;
    /**
     * 上传文件的最大限制：100MB
     */
    public static final long UPLOAD_FILE_MAX_SIZE_100M = 100L * 1024L * 1024L;
    /**
     * 在线人数
     */
    public static final String ONLINE_SESSION_COUNT_STR = "ONLINE_SESSION_COUNT";
    /**
     * 版权年份
     */
    public static final String COPYRIGHT_YEAR_STR = "COPYRIGHT_YEAR";
    /**
     * 403 错误的标记
     */
    public static final String ERROR_403_STR = "error_403";
    /**
     * 404 错误的标记
     */
    public static final String ERROR_404_STR = "error_404";
    /**
     * 412 错误的标记
     */
    public static final String ERROR_412_STR = "error_412";
    /**
     * 500 错误的标记
     */
    public static final String ERROR_500_STR = "error_500";
    /**
     * image
     */
    public static final String IMAGE_STR = "image";
    /**
     * month
     */
    public static final String MONTH_STR = "month";
    /**
     * 空串
     */
    public static final String EMPTY_STR = "";
    /**
     * 超级管理员字符串
     */
    public static final String ADMINISTRATOR_STR = "administrator";
    /**
     * orderBy
     */
    public static final String ORDER_BY_STR = "orderBy";
    /**
     * xml
     */
    public static final String XML_STR = "xml";
    /**
     * A
     */
    public static final String A_STR = "A";
    /**
     * Z
     */
    public static final String Z_STR = "Z";
    /**
     * ROWID
     */
    public static final String ROWID_STR = "ROWID";
    /**
     * ASC
     */
    public static final String ASC_STR = "ASC";
    /**
     * DESC
     */
    public static final String DESC_STR = "DESC";
    /**
     * folder
     */
    public static final String FOLDER_STR = "folder";
    /**
     * item
     */
    public static final String ITEM_STR = "item";
    /**
     * loginid
     */
    public static final String LOGINID_STR = "loginid";
    /**
     * 标识请求来自 uploadifive 文件上传
     */
    public static final String UPLOADIFIVE = "uploadifive";
    /**
     * 分隔符：|
     */
    public static final String SPLIT_1 = "|";
    /**
     * 按时间降序排序
     */
    public static final int ORDER_BY_TIME_DESC = 0;
    /**
     * 日期格式1
     */
    public static final String DATE_FORMAT_1 = "yyyy-MM-dd";
    /**
     * 日期格式2
     */
    public static final String DATE_FORMAT_2 = "yyyy年M月";
    /**
     * 日期格式3
     */
    public static final String DATE_FORMAT_3 = "d日";
    /**
     * 日期格式4
     */
    public static final String DATE_FORMAT_4 = "yyyy";
    /**
     * 日期格式5
     */
    public static final String DATE_FORMAT_5 = "M";
    /**
     * 日期格式6
     */
    public static final String DATE_FORMAT_6 = "yyyy-MM";
    /**
     * 日期格式7
     */
    public static final String DATE_FORMAT_7 = "yyyyMMdd";
    /**
     * 日期时间格式1
     */
    public static final String DATE_TIME_FORMAT_1 = "yyyy-MM-dd HH:mm:ss";
    /**
     * 在线 Session ID List，用于统计在线人数
     */
    public static final List<String> ONLINE_SESSION_ID_LIST = Collections.synchronizedList(new ArrayList<String>());
    /**
     * WebSocket 文本服务器
     */
    public static final String WEB_SOCKET_TEXT_SERVER = "webSocketTextServer";
    /**
     * # 号
     */
    public static final String WELL_CHAR = "#";
    /**
     * @ 号
     */
    public static final String AT_CHAR = "@";
    /**
     * + 号
     */
    public static final String PLUS_CHAR = "+";
    /**
     * - 号
     */
    public static final String MINUS_CHAR = "-";
    /**
     * / 号
     */
    public static final String BACKSLASH_CHAR = "/";
    /**
     * . 号
     */
    public static final String POINT_CHAR = ".";
    /**
     * , 号
     */
    public static final String COMMA_CHAR = ",";
    /**
     * _ 号
     */
    public static final String UNDERLINE_CHAR = "_";
    /**
     * & 号
     */
    public static final String AND_CHAR = "&";
    /**
     * = 号
     */
    public static final String EQUALS_CHAR = "=";
    /**
     * ? 号
     */
    public static final String ASK_CHAR = "?";
    /**
     * * 号
     */
    public static final String ASTERISK_CHAR = "*";
    /**
     * A
     */
    public static final char A_CHAR = 'A';
    /**
     * Z
     */
    public static final char Z_CHAR = 'Z';
    /**
     * 值：0
     */
    public static final int VALUE_0 = 0;
    /**
     * 值：0L
     */
    public static final long VALUE_L_0 = 0L;
    /**
     * 值：1
     */
    public static final int VALUE_1 = 1;
    /**
     * 值：-1
     */
    public static final int VALUE_MINUS_1 = -1;
    /**
     * 值：1L
     */
    public static final long VALUE_L_1 = 1L;
    /**
     * 值：2
     */
    public static final int VALUE_2 = 2;
    /**
     * 值：2
     */
    public static final long VALUE_L_2 = 2L;
    /**
     * 值：3
     */
    public static final int VALUE_3 = 3;
    /**
     * 值：4
     */
    public static final int VALUE_4 = 4;
    /**
     * 值：5
     */
    public static final int VALUE_5 = 5;
    /**
     * 值：6
     */
    public static final int VALUE_6 = 6;
    /**
     * 值：7
     */
    public static final int VALUE_7 = 7;
    /**
     * 值：8
     */
    public static final int VALUE_8 = 8;
    /**
     * 值：9
     */
    public static final int VALUE_9 = 9;
    /**
     * 值：10
     */
    public static final int VALUE_10 = 10;
    /**
     * 值：15
     */
    public static final int VALUE_15 = 15;
    /**
     * 值：18
     */
    public static final int VALUE_18 = 18;
    /**
     * 值：20
     */
    public static final int VALUE_20 = 20;
    /**
     * 值：30
     */
    public static final int VALUE_30 = 30;
    /**
     * 值：50
     */
    public static final int VALUE_50 = 50;
    /**
     * 值：100
     */
    public static final int VALUE_100 = 100;
    /**
     * 值：100
     */
    public static final double VALUE_D_100 = 100D;
    /**
     * 值：200
     */
    public static final int VALUE_200 = 200;
    /**
     * 值：999
     */
    public static final int VALUE_999 = 999;
    /**
     * 值：1000
     */
    public static final int VALUE_1000 = 1000;
    /**
     * 值：1000
     */
    public static final long VALUE_L_1000 = 1000L;
    /**
     * 值：500
     */
    public static final int VALUE_500 = 500;
    /**
     * 值：2000
     */
    public static final int VALUE_2000 = 2000;
    /**
     * 值：2017
     */
    public static final int VALUE_2017 = 2017;
    /**
     * 值：10000
     */
    public static final int VALUE_10000 = 10000;
    /**
     * 值：true
     */
    public static final boolean VALUE_TRUE = true;
    /**
     * 值：false
     */
    public static final boolean VALUE_FALSE = false;
    /**
     * 上传目录：通知
     */
    public static final String UPLOAD_DIR_NOTICE = "/upload/notice";
    /**
     * 上传目录：学习资料
     */
    public static final String UPLOAD_DIR_LEARN_FILE = "/upload/learn_file";
    /**
     * 上传目录：学习动态
     */
    public static final String UPLOAD_DIR_LEARN_DYM = "/upload/learn_dym";
    /**
     * 上传目录：首页广告
     */
    public static final String UPLOAD_DIR_HOME_ADVERT = "/upload/home_advert";
    /**
     * 上传目录：举报
     */
    public static final String UPLOAD_DIR_REPORT = "/upload/report";
    /**
     * 上传目录：网页
     */
    public static final String UPLOAD_DIR_HTML = "/upload/html";
    /**
     * 内容换行
     */
    public static final String CONTENT_NEWLINE_BR_SPAN = "<br><span class='m-r-30'></span>";
    /**
     * 换行
     */
    public static final String NEWLINE_BR = "<br>";
    /**
     * true
     */
    public static final String TRUE = "true";
    /**
     * false
     */
    public static final String FALSE = "false";
    /**
     * 举报来源：电话
     */
    public static final String REPORT_SOURCE_PHONE = "电话";
    /**
     * 举报来源：微信
     */
    public static final String REPORT_SOURCE_WEIXIN = "微信";
    /**
     * 举报结果：已举报
     */
    public static final String REPORT_RESULT_1 = "1";
    /**
     * 举报结果：核实中
     */
    public static final String REPORT_RESULT_2 = "2";
    /**
     * 举报结果：已核实
     */
    public static final String REPORT_RESULT_3 = "3";
    /**
     * 举报结果：已关闭
     */
    public static final String REPORT_RESULT_4 = "4";
    /**
     * 举报结果：已发放
     */
    public static final String REPORT_RESULT_5 = "5";
    /**
     * 是否为管理员：普通用户
     */
    public static final String IS_ADMIN_USER = "0";
    /**
     * 是否为管理员：管理员
     */
    public static final String IS_ADMIN_ADMIN = "1";
    /**
     * 是否为管理员：超级管理员
     */
    public static final String IS_ADMIN_SUPER_ADMIN = "2";
    /**
     * Session 失效
     */
    public static final String SESSION_TIMEOUT = "sessionTimeout";
    /**
     * Shiro 登录失败
     */
    public static final String SHIRO_LOGIN_FAILURE = "shiroLoginFailure";
    /**
     * 举报页面
     */
    public static final String PAGE_REPORT = "report";
    /**
     * 我的举报页面
     */
    public static final String PAGE_MY_REPORT = "myReport";
    /**
     * 绑定手机号页面
     */
    public static final String PAGE_BIND_PHONE = "bindPhone";
    /**
     * SHA-1
     */
    public static final String SHA_1 = "SHA-1";
    /**
     * MD5
     */
    public static final String MD5 = "MD5";
    /**
     * 内容类型 1
     */
    public static final String CONTENT_TYPE = "Content-Type";
    /**
     * 内容类型值 1
     */
    public static final String CONTENT_TYPE_VALUE_1 = "application/x-www-form-urlencoded; charset=UTF-8";
    /**
     * 微信
     */
    public static final String WEIXIN = "微信";
    /**
     * 电话
     */
    public static final String PHONE = "电话";
    /**
     * Word 后缀 doc
     */
    public static final String SUFFIX_DOC = "doc";
    /**
     * Word 后缀 docx
     */
    public static final String SUFFIX_DOCX = "docx";
    /**
     * Excel 后缀 xls
     */
    public static final String SUFFIX_XLS = "xls";
    /**
     * Excel 后缀 xlsx
     */
    public static final String SUFFIX_XLSX = "xlsx";
    /**
     * HTML 后缀 html
     */
    public static final String SUFFIX_HTML = "html";
    /**
     * YES
     */
    public static final String YES = "yes";
    /**
     * head 标签
     */
    public static final String HEAD_TAG = "<head>";
    /**
     * html5 标签
     */
    public static final String HTML5_TAG = "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0\">";
    /**
     * 根资源
     */
    public static final String ROOT_RESOURCE_NAME = "根资源";
    /**
     * Byte
     */
    public static final String BYTE = "byte";
    public static final String BYTE_ = "java.lang.Byte";
    /**
     * Long
     */
    public static final String LONG = "long";
    public static final String LONG_ = "java.lang.Long";
    /**
     * Short
     */
    public static final String SHORT = "short";
    public static final String SHORT_ = "java.lang.Short";
    /**
     * Float
     */
    public static final String FLOAT = "float";
    public static final String FLOAT_ = "java.lang.Float";
    /**
     * String
     */
    public static final String STRING = "String";
    public static final String STRING_ = "java.lang.String";
    /**
     * Double
     */
    public static final String DOUBLE = "double";
    public static final String DOUBLE_ = "java.lang.Double";
    /**
     * Integer
     */
    public static final String INTEGER = "int";
    public static final String INTEGER_ = "java.lang.Integer";
    /**
     * Boolean
     */
    public static final String BOOLEAN = "boolean";
    public static final String BOOLEAN_ = "java.lang.Boolean";
    /**
     * Character
     */
    public static final String CHARACTER = "char";
    public static final String CHARACTER_ = "java.lang.Character";

    //--------------------[/通用常量]--------------------//

    //--------------------[网页授权 URLEncode 地址]--------------------//
    /**
     * 微信 snsapi_base 网页授权 URLEncode 地址
     */
    public static final String URL_ENCODE_WEIXIN_WEBPAGE_AUTHORIZE_SNSAPI_BASE = "http%3A%2F%2Fqz.boilqiao.cn%2Fqz-safekavass%2Fweixin%2Fwebpage%2Fauthorize%2Fsnsapi_base.html";
    /**
     * 微信 snsapi_userinfo 网页授权 URLEncode 地址
     */
    public static final String URL_ENCODE_WEIXIN_WEBPAGE_AUTHORIZE_SNSAPI_USERINFO = "http%3A%2F%2Fqz.boilqiao.cn%2Fqz-safekavass%2Fweixin%2Fwebpage%2Fauthorize%2Fsnsapi_userinfo.html";
    //--------------------[/网页授权 URLEncode 地址]--------------------//


    //--------------------[通用变量]--------------------//
    /**
     * 服务器请求路径
     */
    public static String SERVER_REQUEST_PATH = null;
    //--------------------[/通用变量]--------------------//


    //--------------------[正则表达式]--------------------//
    /**
     * UUID 的正则表达式
     */
    public static final String UUID_RE = "^0|([0-9A-Z]{32})$";
    /**
     * UUID 的正则表达式，可为空
     */
    public static final String UUID_EMPTY_RE = "^(\\s*)|([0-9A-Z]{32})$";
    public static final String UUID_RE_MSG = "编号由数字、大写字母组成，且长度为32个字符";
    /**
     * 账号正则表达式
     */
    public static final String ACCOUNT_RE = "^[0-9A-Za-z_]{5,20}$";
    public static final String ACCOUNT_RE_MSG = "账号由数字、字母、下划线组成，且长度在5至20个字符之间";
    /**
     * 邮箱正则表达式
     */
    public static final String MAIL_RE = "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$";
    public static final String MAIL_RE_MSG = "邮箱格式不正确";
    /**
     * 手机号正则表达式
     */
    public static final String PHONE_RE = "^1[3-9][0-9]{9}$";
    /**
     * 手机号正则表达式，可为空
     */
    public static final String PHONE_EMPTY_RE = "^(\\s*)|(1[3-9][0-9]{9})$";
    public static final String PHONE_RE_MSG = "手机号格式不正确";
    /**
     * 密码正则表达式
     */
    public static final String PASSWD_RE = "^[0-9a-zA-Z]{6,20}$";
    public static final String PASSWD_RE_MSG = "密码由数字、字母组成，且长度在6至20个字符之间";
    /**
     * 邮箱激活码正则表达式
     */
    public static final String MAIL_ACT_CODE_RE = "^[0-9A-Z]{32}$";
    public static final String MAIL_ACT_CODE_RE_MSG = "邮箱激活码由数字、大写字母组成，且长度为32个字符";
    /**
     * 分隔符正则表达式：\\|
     */
    public static final String SPLIT_1_RE = "\\|";
    /**
     * 完整 URL 正则表达式
     */
    public static final String URL_FULL_RE = "^(?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\\d{2,5})?(?:[/?#]\\S*)?$";
    public static final String URL_FULL_RE_MSG = "URL格式不正确";
    /**
     * 部分 URL 正则表达式
     */
    public static final String URL_ONLY_RE = "^\\/web\\/\\w+(\\/\\w+)*((.html)|(.json))(\\?\\S+)?$";
    /**
     * 部分 URL 正则表达式，可为空
     */
    public static final String URL_ONLY_EMPTY_RE = "^(\\s*)|(\\/web\\/\\w+(\\/\\w+)*((.html)|(.json))(\\?\\S+)?)$";
    public static final String URL_RE_MSG = "URL格式不正确";
    /**
     * 中文正则表达式
     */
    public static final String CHINESE_1_RE = "[\u4e00-\u9fa5]";
    public static final String CHINESE_1_RE_MSG = "只能由中文线组成";
    public static final String CHINESE_2_RE = "^[\u4e00-\u9fa5\\w\\/]+$";
    public static final String CHINESE_2_EMPTY_RE = "^(\\s*)|([\u4e00-\u9fa5\\w\\/]+)$";
    public static final String CHINESE_2_RE_MSG = "只能由中文、数字、字母、下划线组成";
    /**
     * 编码正则表达式
     */
    public static final String CODE_RE = "^[A-Z]+[0-9A-Z]*$";
    public static final String CODE_RE_MSG = "编码以大写字母开头，由数字、大写字母组成";
    /**
     * Font Awesome 字体正则表达式
     */
    public static final String FONT_AWESOME_RE = "^fa fa-[0-9a-z]+(-[0-9a-z]+)*$";
    public static final String FONT_AWESOME_RE_MSG = "ICON由“fa fa-小写字母、数字、减号”组成";
    /**
     * 驼峰式字符串的正则表达式
     */
    public static final String CAMEL_CASE_RE = "^[a-z]+[0-9a-z]*([A-Z][0-9a-z]*)+$";
    public static final String CAMEL_CASE_RE_MSG = "非驼峰式字符串";
    /**
     * 数字的正则表达式
     */
    public static final String NUMBER_RE = "^[0-9]+$";
    public static final String NUMBER_RE_MSG = "只能由数字组成";
    /**
     * 字典代码的正则表达式
     */
    public static final String DICT_CODE_RE = "^D[0-9]{1,10}$";
    public static final String DICT_CODE_RE_MSG = "代码由字母“D”、数字组成，且以“D”开头，如：D1";
    /**
     * 阿里巴巴图标的正则表达式
     */
    public static final String ICONFONT_RE = "^(iconfont icon-)\\w([\\-]?\\w+)*$";
    /**
     * 阿里巴巴图标的正则表达式，可为空
     */
    public static final String ICONFONT_EMPTY_RE = "^(\\s*)|((iconfont icon-)\\w([\\-]?\\w+)*)$";
    public static final String ICONFONT_RE_MSG = "图标格式不正确";
    /**
     * 日期正则表达式（包含年月日）
     */
    public static final String DATE_1_RE = "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$";
    /**
     * 日期正则表达式（包含年月）
     */
    public static final String DATE_2_RE = "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])))$";
    /**
     * 日期正则表达式（包含年月日），可为空
     */
    public static final String DATE_1_EMPTY_RE = "^(\\s*)|(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$";
    /**
     * 日期正则表达式
     */
    public static final String DATE_RE_MSG = "日期格式不正确";
    /**
     * 数字拼接的字符串的正则表达式
     */
    public static final String NUMBER_STR_SPLIT_RE = "^[0-9]+(\\|[0-9]+)*$";
    /**
     * 数字拼接的字符串的正则表达式，可为空
     */
    public static final String NUMBER_STR_SPLIT_EMPTY_RE = "^(\\s*)|([0-9]+(\\|[0-9]+)*)$";
    /**
     * 数字、字母拼接的字符串的正则表达式
     */
    public static final String NUMBER_LETTER_STR_SPLIT_RE = "^[0-9A-Za-z]+(\\|[0-9A-Za-z]+)*$";
    /**
     * 数字、字母拼接的字符串的正则表达式，可为空
     */
    public static final String NUMBER_LETTER_STR_SPLIT_EMPTY_RE = "^(\\s*)|([0-9A-Za-z]+(\\|[0-9A-Za-z]+)*)$";
    /**
     * 字符串拼接的字符串的正则表达式
     */
    public static final String STR_SPLIT_RE = "^[^\\|]+(\\|[^\\|]+)*$";
    /**
     * 时间正则表达式（24小时制）
     */
    public static final String TIME_24_1_RE = "^(([0-1][0-9])|([2][0-3])):[0-5][0-9]$";
    /**
     * 时间正则表达式（24小时制）
     */
    public static final String TIME_24_2_RE = "^([0-9]|(1[0-9])|(2[0-3]))时([0-9]|([1-5][0-9]))分$";
    public static final String TIME_RE_MSG = "时间格式不正确";
    /**
     * ABCD 的正则表达式，可为空
     */
    public static final String ABCD_EMPTY_RE = "^(\\s*)|([ABCD]{1,4})$";
    public static final String ABCD_EMPTY_RE_MSG = "由ABCD组成";
    /**
     * 行业代码的正则表达式
     */
    public static final String INDUSTRY_CODE_RE = "^[A-Z][0-9]{0,9}$";
    /**
     * 行业代码的正则表达式，可为空
     */
    public static final String INDUSTRY_CODE_EMPTY_RE = "^(\\s*)|([A-Z][0-9]{0,9})$";
    public static final String INDUSTRY_CODE_RE_MSG = "行业代码由“一个大写字母+数字”组成，最多不超过10个字符";
    /**
     * 数字的正则表达式，可为空
     */
    public static final String NUMBER_EMPTY_RE = "^(\\s*)|([0-9]+)$";
    /**
     * 数字 0 或 1 的正则表达式
     */
    public static final String NUMBER_0_1_RE = "^[01]$";
    public static final String NUMBER_0_1_RE_MSG = "只能由0或1组成";
    /**
     * 字符串拼接的字符串的正则表达式，可为空
     */
    public static final String STR_SPLIT_EMPTY_RE = "^(\\s*)|([^\\|]+(\\|[^\\|]+)*)$";
    /**
     * 内容换行的正则表达式
     */
    public static final String CONTENT_NEWLINE_N_RE = "\\n";
    /**
     * 内容回车换行的正则表达式
     */
    public static final String CONTENT_NEWLINE_RN_RE = "\\r\\n";
    /**
     * 内容 br 和 span 的正则表达式
     */
    public static final String CONTENT_NEWLINE_BR_SPAN_RE = "\\s*(<br><span class='m-r-30'></span>)\\s*";
    /**
     * 内容“　”，我也不晓得这是什么玩意，又不是正则表达式里的空白符(\s)，但是就是存在内容里面，不能用空白符替换（死活去不掉）。
     */
    public static final String CONTENT_NEWLINE_SHIT_RE = "(　)+";
    /**
     * 权限的正则表达式
     */
    public static final String PERMISSION_RE = "^[a-z][0-9a-z_]*:((\\*)|[0-9a-z_]+)$";
    public static final String PERMISSION_EMPTY_RE = "^(\\s*)|([a-z][0-9a-z_]*:((\\*)|[0-9a-z_]+))$";
    public static final String PERMISSION_RE_MSG = "权限代码由(0-9)、(a-z)、(_)、(:)、(*)组成，且以(a-z)开头，如：user:* 或 user:create";
    /**
     * 角色的正则表达式
     */
    public static final String ROLE_RE = "^[a-z][0-9a-z_]*$";
    public static final String ROLE_EMPTY_RE = "^(\\s*)|([a-z][0-9a-z_]*)$";
    public static final String ROLE_RE_MSG = "角色代码由(0-9)、(a-z)、(_)组成，且以(a-z)开头，如：administrator";
    //--------------------[/正则表达式]--------------------//


    //--------------------[性别]--------------------//
    /**
     * 性别-保密
     */
    public static final int SEX_0 = 0;
    /**
     * 性别-男
     */
    public static final int SEX_1 = 1;
    /**
     * 性别-女
     */
    public static final int SEX_2 = 2;
    //--------------------[/性别]--------------------//


    //--------------------[编码方式]--------------------//
    /**
     * 编码方式：GBK
     */
    public static final String GBK = "GBK";
    /**
     * 编码方式：UTF-8
     */
    public static final String UTF_8 = "UTF-8";
    /**
     * 编码方式：ISO-8859-1
     */
    public static final String ISO_8859_1 = "ISO-8859-1";
    //--------------------[/编码方式]--------------------//
}